package com.itheima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.article.dto.ArticleInfoDto;
import com.itheima.article.pojo.ApArticle;
import com.itheima.common.pojo.PageInfo;
import com.itheima.common.pojo.PageRequestDto;

/**
 * <p>
 * 文章信息表，存储已发布的文章 服务类
 * </p>
 *
 * @author czh
 * @since 2021-08-20
 */
public interface ApArticleService extends IService<ApArticle> {

    ApArticle saveArticle(ArticleInfoDto articleInfoDto);

    PageInfo<ApArticle> searchOrder(PageRequestDto<ApArticle> dto);

    ArticleInfoDto detailByArticleId(Long id);
}
